package main

import (
	"fmt"
)

func main() {
	var num int
	var num1 int
	fmt.Println("请输入数字")
	fmt.Scan(&num)
	for num > 10 {
		num2 := num % 10
		num1 = num1*10 + num2
		num /= 10
	}
	num1 = num1*10 + num
	fmt.Println(num1)

}
